package com.linglan.modules.department.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linglan.modules.department.dto.result.DepartmentResult;
import com.linglan.modules.department.entity.BizDepartment;

import java.util.List;
import java.util.Map;

/**
 * 业务-科室表(BizDepartment)表服务接口
 *
 * @author makejava
 * @since 2025-05-04 22:20:02
 */
public interface BizDepartmentService extends IService<BizDepartment> {

    /**
     * 根据id查询科室并进行分组
     *
     * @param ids
     * @return
     */
    Map<Long, DepartmentResult> findGroupById(List<Long> ids);

    /**
     * 查询所有科室
     *
     * @return
     */
    List<DepartmentResult> findAllDepartments(Long hospitalId);

    /**
     * 根据id查询科室信息
     *
     * @param id
     * @return
     */
    DepartmentResult findById(Long id);
}

